<#include "_layouts/default.ftl">
<#include "_includes/pagination.ftl">
<@default title="${options.blog_title!}" keywords="${options.seo_keywords!}" description="${options.seo_description!}" canonical="${context!}">
<div class="main-post-list hidden">

  <ol class="post-list">
    <#list posts.content as post>
      <li>
        <h2 class="post-list__post-title post-title"><a href="${context!}/archives/${post.url!}"
                                                        title="访问 ${post.title!}">${post.title!}</a></h2>
        <p class="excerpt">${post.summary!}&hellip;</p>
        <div class="post-list__meta">
          <time datetime="${post.createTime}"
                class="post-list__meta--date date">${post.createTime?string("yyyy-MM-dd")}</time>
          <span class="post-list__meta--tags tags">
            <#if post.tags?? && post.tags?size gt 0>
              <#list post.tags as tag>
                &#8226;
                <a href="${context!}/tags/${tag.slugName}#blog">${tag.name}</a>&nbsp
              </#list>
            </#if>
          </span>
          <a class="btn-border-small" href="${context!}/archives/${post.url}">继续阅读</a></div>
        <hr class="post-list__divider"/>
      </li>
    </#list>
  </ol>
  <@nav url = "${context!}/"></@nav>
</div>
</@default>